import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;

public class DebugServer 
{
	public static void main(String[] args) 
	{
		DatagramSocket gameSocket;
		byte[] buf = new byte[1024];
		String clientParam;
		
		try 
		{
			gameSocket = new DatagramSocket(6789);
			System.out.println("x,y,z,t");
		
			DatagramPacket packet = new DatagramPacket(buf, buf.length);
			while(true)
			 {
				gameSocket.receive(packet);
				clientParam = new String(packet.getData(),0, packet.getLength());
				System.out.println(clientParam);
			 }
		} 
		catch (IOException e) 
		{
			e.printStackTrace();
		}
	}

}
